#pragma once
#include <iostream>
#include <sys/epoll.h>

class Event
{
#define REVS_NUM 128
public:
    Event()
    {

    }
    epoll_event* GetEventSpace()
    {
        return _revs;
    }

    int GetEventSize()
    {
        return REVS_NUM;
    }
    int GetReadFd(int i)
    {
        return _revs[i].data.fd;
    }
    int GetReadEvent(int i)
    {
        return _revs[i].events;
    }
    ~Event()
    {

    }
private:
    struct epoll_event _revs[REVS_NUM];
};